<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>部署流程 - 流程管理</title>
    <meta name="decorator" content="default"/>
    <script src="../static/lib/layui/layui.js" charset="utf-8"></script>
    <script src="../static/lib/x-layui.js"></script>
    <link rel="stylesheet" href="../static/lib/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="../static/plugin/layer/skin/layer.css">
    <link rel="stylesheet" type="text/css" href="../static/css/dj-css.css">
    <style>
        body {
            background: #f4f6f8;
            padding-top: 16px;
            padding-left: 20px;
        }
        .layui-form-item {
            line-height: 38px;
        }

        .dj-select .dj-select-list{
            width:180px;
        }
        h2 {
            font-size: 18px;
            font-weight: bold;
            line-height: 32px;
            margin-right: 20px;
            background: #fff;
            padding: 18px 0 18px 18px;

        }

        h2:after {
            display: block;
            content: "";
            float: left;
            width: 4px;
            height: 32px;
            background-color: #35a3e5;
            margin-right: 15px;
        }
        .main {
            margin-top: 20px;
            margin-right: 20px;
            padding: 22px 36px 40px 36px;
            background: #fff;
        }
        form label {
            display: inline-block;
            height: 40px;
            line-height: 40px;
            font-size: 16px;
            padding: 0 15px;
            width: 80px;
        }
        form .control-group{
            margin-top:26px;
        }

        form .controls{
            position: relative;
        }
        form .controls input{
            position: absolute;
            left:0;
            top:0;
            opacity: 0;
            height:40px;
            cursor:pointer;
        }
        form .controls i{
            display:inline-block;
            width:188px;
            height:40px;
            border:1px solid #35a3e5;
            border-radius: 4px;
            font-style: normal;
            line-height: 40px;
            text-align: center;
        }


        .form-actions{
            padding-left:105px;
            padding-top:46px;
        }
        .form-actions input{
            width:120px;
            height:40px;
            line-height: 40px;
            text-align: center;
            border-radius: 4px;
            border:0;
            outline: 0;
            cursor:pointer;
        }
        .form-actions .submit{
            background-color: #35a3e5;
            color:#fff;
            margin-right:20px;
        }


    </style>
</head>
<body>

<h2>部署流程 - 流程管理</h2>

<sys:message content="${message}"/>
<div class="main">
<form id="inputForm" action="${rc.contextPath}/actprocess/deploy2.do" method="post" enctype="multipart/form-data" class="form-horizontal">
    <%--<div class="control-group">--%>
        <%--<label class="control-label">流程分类：</label>--%>
        <%--<div class="controls">--%>
            <%--<select id="category" name="category" class="required input-medium">--%>
                <%--<c:forEach items="${categoryList}" var="c">--%>
                    <%--<option value="${c.code}">${c.name}</option>--%>
                <%--</c:forEach>--%>
            <%--</select>--%>
        <%--</div>--%>
    <%--</div>--%>
        <input type="hidden" id="category" name="category" value="">
        <div class="dj-select dj-select-inline type fl">
            <label>流程分类：</label>
            <div class="dj-select-content ">
                <div class="dj-select-input" flag='true'>
                    <span  readOnly class="dj-selected " type="text" name="" selectedCode=''
                           style="height:40px;line-height:40px;" id="leave_type">全部分类</span>
                    <i></i>
                </div>
                <ul class="dj-select-list">
                    <c:forEach items="${categoryList}" var="c">
                    <li code="${c.code}">${c.name}</li>
                    </c:forEach>
                </ul>
            </div>
        </div>
        <div class="control-group">
            <label>流程文件：</label><div class="controls" style="display: inline-block;">
                <input type="file" id="file" name="file" class="required"/>
                <i>上传文件</i>
                <span class="help-inline">支持文件格式：zip、bar、bpmn、bpmn20.xml</span>

            </div>
        </div>

    <div class="form-actions">
        <input id="btnSubmit" class="btn submit btn-primary" type="submit" value="提 交"/>
        <input id="btnCancel" class="btn back" type="button" value="返 回" onclick="history.go(-1)"/>
    </div>
</form>
</div>

<script src="../static/lib/jquery.min.js"></script>
<script src="../static/lib/dj-js.js"></script>
</body>
</html>
